<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/static/include/taglib.jsp"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html >
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>后台管理--机构列表</title>
<link href="${ctxStatic}/layui/css/layui.css" rel="stylesheet" />
<link href="${ctxStatic}/css/kpiuitanchu.css" rel="stylesheet" />
<script src="${ctxStatic}/js/jquery-1.8.3.min.js?v=2.0" type="text/javascript"></script>
<script src="${ctxStatic}/layui/layui.all.js" type="text/javascript"></script>
<script src="${ctxStatic}/js/common.js" type="text/javascript"></script>
 <style>
 .selftable tbody td{height:28px;color:#ffffff}
  .selftable tbody td input{text-align: center}
  .layui-table-edit{position: static;}
  .selftable .layui-input, .layui-select, .layui-textarea{height:auto}
  .tanchucontent table tr{height:30px}
   .kq{color:#ffffff;margin:0 auto;margin-top:10px;width:90%}
  .kq table td{height:30px}
 </style>
</head>
<body>

<div style="margin-top:10px" class="kq">
					 <table>
					  <tr>
					   <td style="width:80px;text-align: right">出勤天数：</td>
					   <td style="width:40px">${entityatt.cqts }</td>
					    <td style="width:80px;text-align: right">加班天数：</td>
					   <td style="width:40px">${entityatt.jbts }</td>
					   <td style="width:90px;text-align: right">休假天数：</td>
					   <td style="width:40px">${entityatt.nxjts }</td>
					   <td style="width:90px;text-align: right">探亲假天数：</td>
					   <td style="width:40px">${entityatt.tqjts }</td>
					   <td style="width:80px;text-align: right">婚假天数：</td>
					   <td style="width:40px">${entityatt.hjts }</td>
					 
					   <td style="width:80px;text-align: right">丧假天数：</td>
					   <td style="width:40px">${entityatt.sangjts }</td>
					   <td style="width:80px;text-align: right">病假天数：</td>
					   <td style="width:40px">${entityatt.bjts }</td>
					   
					  
					  
					  </tr>
					  <tr>
					   <td style="width:90px;text-align: right">生育假天数：</td>
					   <td style="width:40px">${entityatt.syjts }</td>
					   <td style="width:80px;text-align: right">年休假天数：</td>
					   <td style="width:40px">${entityatt.sjts }</td>
					   <td style="width:100px;text-align: right">因公致伤天数：</td>
					   <td style="width:40px">${entityatt.gsts }</td>
					  
					
					   <td style="width:80px;text-align: right">年休假天数：</td>
					   <td style="width:40px">${entityatt.qtts }</td>
					   <td style="width:80px;text-align: right">迟到次数：</td>
					   <td style="width:40px">${entityatt.cdcc }</td>
					   <td style="width:80px;text-align: right">早退次数：</td>
					   <td style="width:40px">${entityatt.ztcc }</td>
					   <td style="width:80px;text-align: right">旷工次数：</td>
					   <td style="width:40px">${entityatt.kgcs }</td>
					  </tr>
					 </table>
					</div>

	<div class="tanchucontent">
		<form class="layui-form" id="formedit" name="formedit"
			action="add_userusasstemppj" method="post"
			target="d41d8cd98f00b204e9800998ecf8427e">
			<iframe name="d41d8cd98f00b204e9800998ecf8427e" src="about:blank"
				style="display: none;"></iframe>

			

           <div style="width:100%;text-align: right;height:30px">
               <span style="font-size: 14px;font-weight: bold;color:#ffffff">本季度领导评分：</span>
               <span style="font-size: 14px;font-weight: bold;color:#B8E986;margin-right:20px">${sumentity.totalscore }</span>
           </div>
			<div class="indexcontent">
				<table cellspacing="0" cellpadding="0" border="0"
					class="layui-table" style="margin: 0;">
					<col width="90px"></col>
					<col width="80px"></col>
					<col width="200px"></col>
					<col width="90px"></col>
					<col width="350px"></col>
					<col width="80px"></col>
					<!--  <col width="120px"></col>-->
					<col></col>
					<thead>
						<tr>
							<th>被评价人</th>
							<th>内容</th>
							<th>考核内容</th>
							<th>分值设置</th>
							<th>评价标准</th>
							<th>自评</th>
							<!--  <th>领导评议内容</th>-->
							<th></th>
						</tr>
					</thead>
				</table>

				<div class="selftable" id="selftable">
					<table cellspacing="0" cellpadding="0" border="0"
						class="layui-table" style="margin: 0;">
						<col width="90px"></col>
						<col width="80px"></col>
						<col width="200px"></col>
						<col width="90px"></col>
						<col width="350px"></col>
						<col width="80px"></col>
						<!--  <col width="120px"></col>-->
						<col></col>
						<tbody>
							<c:forEach var="item" items="${lst}" varStatus="idxStatus">
								<tr>
									<c:if test="${idxStatus.index==0 }">
										<td rowspan="${fn:length(lst)}">${userentity.realname}</td>
									</c:if>

									<c:if test="${item.rowspan!=0 }">
										<td rowspan="${item.rowspan}">${item.uasscontent}</td>
									</c:if>
									<td>${item.uassingredients}</td>
									<td>${item.score}</td>
									<td>${item.evaluationstandard}</td>
									<td>
									 <c:if test="${usasspjid==0 }">
									   <input name="ldscore_${item.createid}" maxscore="${item.score}" lay-verify="ldscore"  class="layui-input layui-table-edit" type="text" value="${item.score}">
									 </c:if>
									 <c:if test="${usasspjid>0 }">
									   <input name="ldscore_${item.createid}" maxscore="${item.score}" lay-verify="ldscore"  class="layui-input layui-table-edit" type="text" value="${item.ldscore}">
									 </c:if>
									 
									</td>

									<c:if test="${idxStatus.index==0 }">
										<!--  <td rowspan="${fn:length(lst)}" style="padding: 0">
										<textarea class="layui-textarea"
												style="width: 100%; height: 100%; margin: 0; padding: 0;"
												 name="pynr">${sumentity.pynr}</textarea></td>-->
										
										<td rowspan="${fn:length(lst)}"></td>
									</c:if>

								</tr>
							</c:forEach>
							
							<tr>
							 <td>领导评议内容：</td>
							 <td colspan="6">
							  <textarea class="layui-textarea" lay-verify="required" 
												style="width: 100%; height: 100%; margin: 0; padding: 0;"
												 name="pynr">${sumentity.pynr}</textarea>
							 </td>
							</tr>
							<tr>
								<td>审核人：</td>
								<td>${audioName}</td>
								<td>审核时间：</td>
								<td></td>
							</tr>
						</tbody>
					</table>
					
	<div style="width:100%;height:200px;margin-top:10px">
    <iframe src="../common/user_vtdp?userid=${userentity.userid}&year=${nf}&quarter=${quarter}" width="100%" height="100%"  style="display: block;border:0;padding:0;margin:0;" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes" ></iframe>
  </div>
				</div>
			</div>

  <div style="margin-top:10px;text-align: center;color:#ffffff">
   <!-- <label style="font-size:14px;position: relative;top:3px">自评结果：</label>
    <input type="radio" name="pjjg" value="好" title="好" checked=""> 
   <input type="radio" name="pjjg" value="合格" title="合格"> 
   <input type="radio" name="pjjg" value="差" title="差 ">  --> 
     <button class="button" lay-submit="" lay-filter="demo1" id="btnsave">保存</button>
     <font style="color:yellow;font-weight:bold">（如果是评差的人员，分数不能超过60）</font>
		 <input type="button" value="关闭" class="button"  onclick="top.CloseOpenWindow()"/>
  </div>
 <input type="hidden" value="1" name="pjtype">
 <input type="hidden" value="${createids }" name="createids">
			 <input type="hidden" value="${entityusertemp.templateid}" name="templateid">
			  <input type="hidden" value="${entityusertemp.userid}" name="userid">
			   <input type="hidden" value="${nf}" name="nf">
			 <input type="hidden" value="${quarter}" name="quarter">
			 <input type="hidden" value="${usasspjid}" name="usasspjid" id="usasspjid">
		</form>
	</div>
	
	<input type="hidden" value="${sumentity.pjjg}" id="hidpjjg">

	<script>
     $("#selftable").height($(window).height()-205)

     $('#btnsave').on('click', function () {
         $('#btnsave').attr("disabled","disabled");
         $('#formedit').submit();

     })

     layui.use('form', function(){
       form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功
       
     //  if($("#usasspjid").val()!="0"){
      //     $(":radio[name='pjjg']").removeAttr("checked", "checked");
       //   	$(":radio[name='pjjg'][value='" + $("#hidpjjg").val() + "']").attr("checked", "checked");
      // }
       
       form.verify({
    	   ldscore: function(value,demo){
    	     if(value==''){
    	      return '必填项不能为空';
    	     }
    	     var maxscore=$(demo).attr("maxscore");
    	     if(Number(value)>Number(maxscore)){
       	      return '分数设置不正确,大于该项设置分数';
       	     }
    	    }})
       
	   form.render();
	});  
     
     function CloseDialog(result,msg){
   	  top.frames["iframe"].vUserUsAssTempLd.addresult(result,msg);
    }
     
    </script>
</body>
</html>